/**
 * 个人中心路由
 */

const userCenter = () => import('../user-center.vue');
const userEducation = () => import('../user-education/user-education.vue');
const searchCollege = () => import('../search-college/search-college.vue');
const updateNickname = () => import('../update-nickname/update-nickname.vue');
const updateSignature = () =>
  import('../update-signature/update-signature.vue');

export default [
    {
        path: 'user-center',
        name: 'userCenter',
        component: userCenter,
        meta: {
            title: '个人信息'
        },
        children: [
            {
                path: 'my-education',
                name: 'myEducation',
                component: userEducation,
                meta: {
                    title: '教育经历'
                },
                children: [
                    {
                        path: 'college',
                        name: 'college',
                        component: searchCollege,
                        meta: {
                            title: '所在学校'
                        }
                    }
                ]
            },
            {
                path: 'update-name',
                name: 'updateName',
                component: updateNickname,
                meta: {
                    title: '修改昵称'
                }
            },
            {
                path: 'update-signature',
                name: 'updateSignature',
                component: updateSignature,
                meta: {
                    title: '个性签名'
                }
            }
        ]
    }
];
